/**
 * 
 */
package com.xpec.c4.game.login;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import com.xpec.c4.game.utility.GUID;
import com.xpec.c4.service.h5server.H5ServerOperations;
import com.xpec.c4.service.module.BasicServiceModule;
import com.xpec.c4.service.module.task.TaskTimer;
import com.xpec.c4.service.server.CloseType;

/**
 * @author TW15010
 *
 */
public class KickReloginSelfTaskTimer extends TaskTimer{
	/** log4j object */
	private static final Log log = LogFactory.getLog(KickReloginSelfTaskTimer.class);
	
	private GUID sessionID;
	
	private CloseType closeType;
	
	private BasicServiceModule operateModule;
	
	@Override
	public void execute() throws Exception {
		if (log.isInfoEnabled()) {
			log.info("execute KickReloginSelfTaskTimer");
		}
		H5ServerOperations.sessionClose(sessionID, closeType, operateModule);
	}

	public GUID getSessionID() {
		return sessionID;
	}

	public void setSessionID(GUID sessionID) {
		this.sessionID = sessionID;
	}

	public CloseType getCloseType() {
		return closeType;
	}

	public void setCloseType(CloseType closeType) {
		this.closeType = closeType;
	}

	public BasicServiceModule getOperateModule() {
		return operateModule;
	}

	public void setOperateModule(BasicServiceModule operateModule) {
		this.operateModule = operateModule;
	}
}
